import request from '@/utils/request'
// subsidy-scholarship

// 人员列表
export function scholarshipUserList(query) {
    return request({
      url: '/finances/stuScholarshipApplyController/list',
      method: 'get',
      params: query
    })
  }
// 
export function addScholarshipUser(data) {
  return request({
    url: '/finances/stuScholarshipApplyController',
    method: 'post',
    data: data
  })
}

// 修改人员
export function editScholarshipUser(data) {
  return request({
    url: '/finances/stuScholarshipApplyController',
    method: 'put',
    data: data
  })
}
// 删除人员
export function removeScholarshipUser(id) {
  return request({
    url: '/finances/stuScholarshipApplyController/'+ id,
    method: 'delete'
  })
}

// 人员统计
export function statisticsScholarshipUser(data) {
  return request({
    url: '/finances/stuScholarshipApplyController/getScholarshipStatistics',
    method: 'post',
    data
  })
}

// 我的申请
export function scholarshipMyApply(params) {
  return request({
    url: '/finances/stuScholarshipApplyController/selectMeScholarship',
    method: 'get',
    params
  })
}


// 贫困生人员管理
// 贫困生指标统计
export function poorStudentStatis(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/diffStudentStatis',
    method: 'post',
    params: data
  })
}

// 贫困生人员分配列表
export function poorStudentUserList(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/list',
    method: 'get',
    params: data
  })
}

// 贫困生审核
export function poorStudentApply(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/examStudentApply',
    method: 'post',
    data
  })
}

// 贫困生人员修改
export function editPoorStudentUser(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/updateDiffStudentApply',
    method: 'post',
    data: data
  })
}

// 贫困生人员删除
export function removePoorStudentUser(id) {
  return request({
    url: '/finances/diffStuPlanTypeController/'+ id,
    method: 'delete'
  })
}

// 贫困生-我的申请记录
export function poorStudentMyApply(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/selectStuPlanApplyHistoryListAtAdmin',
    method: 'post',
    data
  })
}

// 贫困生-我的申请记录-修改学生申请表路径
export function editpoorStudentApplyTable(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/studentUploadApplyFile',
    method: 'post',
    data
  })
}

// 贫困生-我的申请记录-修改学生申请状态
export function editpoorStudentApplyType(data) {
  return request({
    url: '/finances/diffStuPlanTypeController/updateDiffStudentApply',
    method: 'post',
    data
  })
}


// 校内奖学金
// 获取校内奖学金学生列表
export function schoolScholarshipUserList(data) {
  return request({
    url: '/finances/schScholarshipStuCollController/list',
    method: 'get',
    params: data
  })
}
// 删除校内奖学金学生
export function schoolScholarshipUserDel(id) {
  return request({
    url: '/finances/schScholarshipStuCollController/'+ id,
    method: 'delete'
  })
}

// 批量删除校内奖学金学生
export function schoolScholarshipUserPlDel(data) {
  return request({
    url: '/finances/schScholarshipStuCollController/deleteSchScholarshipStuCollByIds',
    method: 'post',
    data
  })
}
// 编辑校内奖学金学生
export function schoolScholarshipUserEdit(data) {
  return request({
    url: '/finances/schScholarshipStuCollController',
    method: 'put',
    data
  })
}
// 我的校内奖学金
export function mySchoolScholarshipList() {
  return request({
    url: '/finances/schScholarshipStuCollController/selectMeSchoolScholarship',
    method: 'get'
  })
}